<!DOCTYPE html>
<html ng-app=authapp>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>江苏省师范类专业认证系统管理主页</title>
    <meta name="keywords" content="江苏省师范类专业认证系统管理主页">
    <meta name="description" content="江苏省教育评估院,师范类专业,认证系统,管理主页">

	<link rel="stylesheet" href="../../plugin/bootstrap/bootstrap.min.css" />
	<link rel="stylesheet" href="../../basic/style/base.css" />
	<link rel="stylesheet" type="text/css" href="../../plugin/bootstrap/trix.css">
	<link rel="stylesheet" href="../../models/admin/css/home.css"/>
	<link rel="stylesheet" href="../../models/admin/css/auth_step.css"/>
	<link rel="stylesheet" href="../../models/admin/css/downcentre.css"/>
    <script src="../../plugin/angular/angular.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/trix/0.9.2/trix.js"></script>
    <script src="../../plugin/angular-trix-master/dist/angular-trix.min.js"></script>
    <script src="../../models/admin/js/noticeAndPolicy.js"></script>
    <script src="../../plugin/bootstrap/ui-bootstrap-tpls.js"></script>
    <script src="../../plugin/angular/angular-cookies.min.js"></script>
    <script src="../../plugin/angular/ng-file-upload.min.js"></script>
    <script src="../../basic/js/source.js"></script>
    <script src="../../basic/javascript/funcs.js"></script>
    <script src="../../basic/js/directive.js"></script>

</head>

<body>
	<div authheader></div>
	<div class="main-content" ng-controller="fcontroller">
		<div leftaside></div>
		<aside>
			<div class="top-bar"><span>公告与政策法规管理</span></div>
			<section class="row" style="padding:0 25px; margin-top:10px;">
				<div ng-controller="noticeAndPolicyList">
					<div class="whole-cover" ng-hide="isAddM"></div>
					<div class="add-form" ng-hide="isAddM">
						<div class="toptit" ng-hide="isclickBtn">添加公告或政策法规</div>
						<div class="toptit" ng-show="isclickBtn">修改公告或政策法规</div>
						<div>
							<span>类型：</span>
							<select class="fl select01" ng-hide="isclickBtn"  ng-model="type01" placeholder="">
								<option value="">请选择类型</option>
								<option value="0">评估公告</option>
								<option value="2">政策法规</option>
							</select>
							<span style="text-align:left; text-indent:0.5em;" ng-show="isclickBtn">{{typeName}}</span>
						</div>
						<div>
							<span>公告名称：</span><input type="text" ng-model="title" placeholder="请输入公告名称"/>
						</div> 
						<div class="trixBox">
							<span>公告内容：</span>
							<trix-editor angular-trix ng-model="foo" class="trix-content"></trix-editor>
						</div>
						<div><div class="button" ng-hide="isclickBtn" ng-click="addFirstZ()">确认</div><div class="button" ng-show="isclickBtn" ng-click="updateM()">修改</div><div class="button" ng-click="cancelAddM()">取消</div></div>
					</div>
					<div class="">
					</div>
					<div class="top-check clearfix">
						<select class="fl select01 mr15" ng-model="type" placeholder="">
							<option value="">选择查询条件</option>
							<option value="0">评估公告</option>
							<option value="2">政策法规</option>
						</select>
						<div class="fl btn-query btn ml15" ng-click="queryMain()">查询</div>
						<div class="fr btn-add btn mr15" ng-click="addM()">添加</div>
					</div>
					<div class="list-content">
						<div class="cooleList title">
							<div class="detail-part">
								<ul>
									<li style="width:10%">序号</li>
									<li style="width:15%">类型</li>
									<li style="width:60%">文档名称</li>
									<li style="width:15%">创建时间</li>
								</ul>
							</div>
							<div class="detail-bot">操作</div>
							
						</div>
						<div ng-repeat="arraylist in list" class="cooleList" ng-if="list.length > 0">
							<div class="detail-part">
								<ul>
									<li style="width:10%" ng-bind="$index+1" title="{{$index+1}}"></li>
									<li style="width:15%" ng-bind="arraylist.typeName?arraylist.typeName:'-'" title="{{arraylist.typeName}}">类型</li>
									<li style="width:60%" class="gg-tit" ng-bind="arraylist.title?arraylist.title:'-'" title="{{arraylist.title}}" ng-click="trunTo(arraylist.pid)">文档名称</li>
									<li style="width:15%" ng-bind="arraylist.createTime?arraylist.createTime.substring(0,10):'-'" title="{{arraylist.createTime.substring(0,10)}}">文档名称</li>
								</ul>
							</div>
							<div class="detail-bot">						
								<span class="action" style="color:#169BD5;cursor:pointer;" ng-click="queryAnnouncementInfoByid(arraylist.pid)">修改</span>
								<span class="action" style="color:#169BD5;cursor:pointer;" ng-click="delCollect(arraylist.pid)">删除</span>
							</div>
						</div>
						<div ng-if="list.length > 0" style="padding: 10px">共{{totalCount}}条</div>
						<div class="cooleList" style="text-align: center;padding:10px" ng-if="list.length == 0">
							暂无相关数据
						</div>
					</div>
				</div>
		        <section ng-controller="pageDemo" class="col-md-7 pull-right" ng-show = "totalCount > pageSize">
		            <pagination total-items="bigTotalItems" ng-model="currentPage" max-size="maxSize" class="pagination-sm" boundary-links="true" rotate="false" num-pages="numPages" items_per_page="itemsPerPage" callback="pageChanged()" previous-text="上一页" next-text="下一页" first-text="首页" last-text="尾页"></pagination>
		        </section>
		    </section>
		</aside>
	</div>
	<div authfooter></div>
</body>
</html>
